package com.feign.product;


import com.feign.domain.SpuInfo;
import com.feign.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("mall-product")
public interface SkuInfoFeignService {

    /**
     * 可以直接给网关发请求
     * PathVariable annotation was empty on param 0.
     *
     * @param skuId
     * @return
     * @PathVariable 注解中的属性值value不能为空
     */
    @GetMapping("product/skuInfo/info/{skuId}")
    R info(@PathVariable(value = "skuId") Long skuId);

}
